<div>
    <div style="margin-bottom: 20px;">
        <span style="font-size: 30px">文件名检索</span>
        <span class="navbar-version" style="color:red">{{partition}}</span>
        <span class="navbar-version" ng-show="!winvisible" ng-click="win.open()">[选择分区]</span>
    </div>
    <div kendo-window="win" k-title="'选择分区'"
         k-width="740" k-height="220" k-visible="false"
         k-on-open="winvisible = true" k-on-close="winvisible = false">

        <div class="partition_box">
            <div class="partition_section">
                <div class="partition_title">
                    <a href="" ng-click="selectShow(0)">全部</a>
                </div>
                <div class="partition_content_w">
                </div>
            </div>
            <div class="partition_section">
                <div ng-repeat="item in partitionSource">
                    <div class="partition_title">
                        <a href="">{{item.fname}}</a>
                    </div>
                    <div class="partition_content_w">
                        <div class="partition_link" ng-repeat="k in item.partition">
                            <a href="" ng-click="selectShow(k)">{{k.cname}}</a>
                        </div>
                    </div>
                    <br>
                </div>
                <br>
            </div>
        </div>
    </div>
</div>
<div class="query">查询条件</div>
<div class="textboxes">
    <div class="form-inline group-margin">
        <div class="form-group">
            <label>文件名:</label>
            <input kendo-auto-complete ng-trim="true" ng-model="param.file_name" class="myinput">
        </div>
        <!--<div class="form-group">-->
        <!--<label>日志消息:</label>-->
        <!--<input kendo-auto-complete ng-trim="true" ng-model="param.logmsg" class="myinput"/>-->
        <!--</div>-->
    </div>


    <div class="form-inline group-margin">
        <div class="form-group">
            <label>日志时间:</label>
            <select kendo-drop-down-list ng-model="param.queryType" ng-change="selectQuery()"
                    class="myinput">
                <option value="0">精确查找</option>
                <option value="1">快速查找</option>
            </select>
        </div>
        <div class="form-group" ng-if="isQuickQuery">
            <label>起始时间:</label>
            <input kendo-date-time-picker k-format="'yyyy-MM-dd HH:mm:ss'" k-ng-model="param.startTime"/>
        </div>
        <div class="form-group" ng-if="!isQuickQuery">
            <label>起始时间:</label>
            <input type="number" kendo-auto-complete ng-model="param.dateValue"
                   style="width: 70px;"/>
            <select kendo-drop-down-list ng-model="param.dateType" style="width: 135px;">
                <option value="second">秒钟之前</option>
                <option value="minute">分钟之前</option>
                <option value="hour">小时之前</option>
                <option value="day">天之前</option>
                <option value="week">周之前</option>
                <option value="month">月之前</option>
                <option value="year">年之前</option>
            </select>
        </div>
        <div class="form-group" ng-if="isQuickQuery">
            <label>结束时间:</label>
            <input kendo-date-time-picker k-format="'yyyy-MM-dd HH:mm:ss'" k-ng-model="param.endTime"/>
        </div>
        <div class="form-group" ng-if="!isQuickQuery">
            <label>结束时间:</label>
            <input kendo-date-time-picker readonly="true" value="Now"/>
        </div>

        <kendo-button class="k-primary" ng-click="query()" style="float: right;">查询</kendo-button>

    </div>
</div>
<div class="table-responsive">
    <div class="result">结果集</div>
    <div kendo-tooltip k-options="toolTipOptions">
        <div kendo-grid="ELKGrid"
             k-options="ELKGridOptions"
             k-on-change="ELKGridRowClick(data, dataItem, columns)"
             k-on-edit="ELKGridRowEdit(kendoEvent)">
        </div>
    </div>
</div>
</div>

